PlayEnemyBornEffect=function(pos,id,parent){
    for (var i=0;i<MW.EFFECTS.ENEMY_BORN.length;++i){
        var effect = MW.EFFECTS.ENEMY_BORN[i];
        if(effect&&!effect._isPlaying){
            cc.log("get a enemy dead effect from buffer");
            effect.play(pos);
            return ;
        }
    }

    cc.log("new a enemy dead effect");
    var mainLayer = GetMainLayer();
    var eff = EnemyBorn.create("xztx");
    eff.addMovementEventCallback(null);
    mainLayer.addChild( eff,2000 );
    eff.play(pos);
};

PlayEnemyDeadEffect=function(pos,id,parent){
    for (var i=0;i<MW.EFFECTS.ENEMY_DEAD.length;++i){
        var effect = MW.EFFECTS.ENEMY_DEAD[i];
        if(effect&&!effect._isPlaying){
            cc.log("get a enemy dead effect from buffer");
            effect.play(pos);
            return ;
        }
    }

    cc.log("new a enemy dead effect");
    var mainLayer = GetMainLayer();
    var eff = EnemyDead.create("ywtx");
    eff.addMovementEventCallback(null);
    mainLayer.addChild( eff,2000 );
    eff.play(pos);
};